PREVIEW: Writing code sometimes leaves us with programs that work, but that are long and hard to understand!
Refactoring is the process of taking a program or piece of code and changing its structure. What the code does will not change, but our code will be quicker, more organized, and easier to understand, edit, and maintain later on.
- Click Run and watch the stage. Then look at the code in the editor below.
- Use the code in the editor to answer the questions that appear on the stage.
To navigate the page using the TAB key, first press ESC to exit the code editor.